<template>
    <hsa-dialog v-model:visible="isVisible" title="删除">
      <p>确认是否删除所选的模版信息?</p>
      <template #footer>
        <el-button @click="closeModal">取消</el-button>
        <el-button type="primary" @click="confirmDelete">确认</el-button>
      </template>
    </hsa-dialog>
  </template>
  
  <script setup lang="ts">
  import { ref } from 'vue';
  
  const isVisible = ref(false);
  
  const open = () => {
    isVisible.value = true;
  };
  
  const closeModal = () => {
    isVisible.value = false;
  };
  
  const confirmDelete = () => {
    console.log('确认删除操作');
    closeModal();
  };
  
  defineExpose({
    open
  });
  </script>